package com.service;

import com.bean.Enterprise;
import com.bean.Flower;
import com.bean.Page;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface FlowerService {
    //用户查询鲜花产品信息
    public Page<Flower> page(int pageNo, int pageSize);

    public Page<Flower> pageByPrice(int pageNo, int pageSize, int min, int max);

    public Page<Flower> pageByName(int pageNo, int pageSize, String flower_name);

    //添加到购物车进行鲜花商品信息查询
    public Flower queryFlowerByFlowerid(int id);

    public List<Map<String, Object>> queryFlowerid(int flowerid);

    public Page<Flower> pageByEnterpriseid(int pageNo, int pageSize, String enterpriseid);

    public void updateFlower(Flower flower);

    public void addFlower(Flower flower);

    public void deleteFlowerByFlowerid(int flowerid);

    public Page<Flower> queryByFclassid(int pageNo, int pageSize, Integer fclassid);

    public List<Flower> queryBySales();

    public int updateById(Integer flowerid, String flower_name, BigDecimal price, String introduce, Integer stock, Integer fclassid);

    public void insertFlower(String flower_name, BigDecimal price, String introduce, Integer stock, Integer fclassid, String enterpriseid, String flower_phoro, Integer sales);

    public void updateflowerPhoto(Integer flowerid, String enterpriseid, String flower_photo);

    public List<Flower> queryByPrice(BigDecimal price);

    public List<Map<String, Object>> queryByName(String content);
}
